#ifndef _H_CC2640R2F_SIMPLETIME_H_
#define _H_CC2640R2F_SIMPLETIME_H_

#include <ti/sysbios/knl/Clock.h>
//#include "util.h"

typedef void (*h_cc2640r2f_simpletime_timercallbackFxn)(UArg arg0);

extern unsigned int H_CC2640R2F_SimpleTime_GetSystickms(void);
extern unsigned int H_CC2640R2F_SimpleTime_GetSystickus(void);

extern void H_CC2640R2F_SimpleTime_Delay(unsigned int dly);

extern Clock_Handle H_CC2640R2F_SimpleTime_TimerCreate(unsigned int timeout, \
                                                  unsigned int period, \
                                                    h_cc2640r2f_simpletime_timercallbackFxn timercallbackFxn);
extern signed char H_CC2640R2F_SimpleTime_TimerStart(Clock_Handle clock_h);
extern signed char H_CC2640R2F_SimpleTime_TimerStop(Clock_Handle clock_h);
extern signed char H_CC2640R2F_SimpleTime_TimerDelete(Clock_Handle *clock_h);

extern signed char H_CC2640R2F_SimpleTime_Delayms_TimerCreate(void);

#endif
